import Vue from 'vue'
import VueI18n from 'vue-i18n'
import Element from 'element-ui'
import elementEnLocale from 'element-ui/lib/locale/lang/en' // element-ui lang
import elementZhCNLocale from 'element-ui/lib/locale/lang/zh-CN'// element-ui lang
import enUSLocale from './en_US'
import zhCNLocale from './zh_CN'
import Vuex from 'vuex'
Vue.use(VueI18n)
Vue.use(Element)
Vue.use(Vuex)
const messages = {
  'en_US': {
    ...enUSLocale,
    ...elementEnLocale
    // ...Avue.locale.en,
  },
  'zh_CN': {
    ...zhCNLocale,
    ...elementZhCNLocale
    // ...Avue.locale.zh,
  }
}
console.log(messages)

const i18n = new VueI18n({
  locale: 'zh_CN',
  messages
})

export default i18n
